CREATE TABLE [dbo].[TDDOCU_COBR]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[NU_AMAR] [dbo].[TD_VC_008] NOT NULL,
[FE_AMAR] [dbo].[TD_DT_001] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL,
[TI_AUXI_DOCU] [dbo].[TD_VC_001] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_020] NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[FE_EMIS] [dbo].[TD_DT_001] NULL,
[FE_VENC] [dbo].[TD_DT_001] NULL,
[CO_MONE] [dbo].[TD_VC_003] NULL,
[IM_TOTA] [dbo].[TD_NU_016_004] NOT NULL,
[IM_COBR] [dbo].[TD_NU_016_004] NOT NULL,
[DE_OBSE] [dbo].[TD_VC_100] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL,
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL,
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL,
[TI_DETA] [dbo].[TD_IN_001] NULL,
[IM_SALD] [dbo].[TD_NU_016_004] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDOCU_COBR] ADD CONSTRAINT [PK__TDDOCU_C__F8814764766D4B53] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_UNID_CONC], [NU_AMAR], [FE_AMAR], [NU_SECU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDOCU_COBR] ADD CONSTRAINT [FK__TDDOCU_COBR__5F0C59BC] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [NU_AMAR], [FE_AMAR]) REFERENCES [dbo].[TCDOCU_COBR] ([CO_EMPR], [CO_UNID_CONC], [NU_AMAR], [FE_AMAR])
GO
